import request from '@/utils/request.js'

export const searchPayment = (searchParams) => {
    return request({
        url: '/money',
        method: 'post',
        data: searchParams
    })
}

export const addPayment = (addParams) => {
    return request({
        url: '/money/add',
        method: 'post',
        data: addParams
    })
}

export const updatePayment = (updateParams) => {
    return request({
        url: '/money/update',
        method: 'post',
        data: updateParams
    })
}

export const deletePayment = (deleteParams) => {
    return request({
        url: '/money/delete',
        method: 'post',
        data: deleteParams
    })
}
